home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / Snippets / Development Tools & Languages / AEGestalt / About.h < prev    next >
Encoding:
Text File  |  1995-02-05  |  1.1 KB  |  54 lines  |  [TEXT/MPS ]

  1. //     About.h
  2. //     Copyright © 1992 by Apple Computer, Inc. All rights reserved.
  3. //    Kent Sandvik DTS
  4. //    This file contains the About box code including any adorners/behaviors
  5. //    The resources are placed in the project .r file
  6. //    Version Info (latest first):
  7. //
  8. //    <1>        khs        1.0        First final version
  9.  
  10.  
  11. #ifndef __UABOUT__
  12. #define __UABOUT__
  13.  
  14. #ifndef __MACAPP__
  15. #include <MacApp.h>
  16. #endif
  17.  
  18. #ifndef __RESOURCES__
  19. #include <Resources.h>
  20. #endif
  21.  
  22.  
  23. //    CONSTANTS
  24.  
  25. const unsigned short phAboutBox = 12000;        // our resource which resides in the .r file
  26. const ResType kVersInfoType = 'vers';            // for getting out the version info from the binary
  27. const ResNumber kVers1InfoID = 1;
  28. const IDType kBlueMetalLook = 'blmt';            // our AboutBox adorner ID
  29.  
  30.  
  31. //    FUNCTION PROTOTYPES
  32.  
  33. void CreateAboutBox();                            // the one and only function, place this inside the
  34. // TApplication->DoAboutBox(), and you are up and running!
  35.  
  36.  
  37. //    CLASSES
  38. //    Our adorner used inside the About Box resource
  39. DeclareClassDesc(TMetalBlueFill);
  40.  
  41. class TMetalBlueFill : public TAdorner
  42. {
  43.  
  44.     DeclareClass(TMetalBlueFill);
  45.  
  46. public:
  47.     TMetalBlueFill();
  48.     virtual void Draw(TView* itsView,
  49.                              const VRect&        /*area*/);
  50. };
  51.  
  52.  
  53.  
  54. #endif